<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<h:head>
	<title>PrimeFAces 2.2.1 + Hibernate + JSF 2.0</title>
</h:head>
<h:body>
	<p:growl id="avisos" showDetail="true" life="3000"/>
	<p:fieldset legend="Meu Cadastro" toggleable="true">
		<h:form>
			<h:panelGrid columns="2">
			
				<h:outputText value="Nome:" />
				<p:inputText id="nome" value="#{ClienteBean.cliente.nome}"/>
				
				<h:outputText value="Observações:" />
				<p:inputTextarea id="observacao" value="#{ClienteBean.cliente.observacao}"/>
				
				<h:outputText value="Data cadastro:" />
				<p:calendar id="data" value="#{ClienteBean.cliente.dataCadastro}"/>
				
				<h:outputText value="Telefone:" />
				<p:inputMask id="telefone" mask="(999)9999-9999" value="#{ClienteBean.cliente.telefone}"/>
				
				<h:outputText value="CPF:" />
				<p:inputMask id="cpf" mask="999.999.999-99" value="#{ClienteBean.cliente.CPF}"/>
				
				<h:outputText value="Descricão:" />
				<p:keyboard layout="qwertyBasic" value="#{ClienteBean.cliente.descricao}"/>
				
				<h:outputText value="Senha:" />
				<p:keyboard password="true" keypadOnly="true" value="#{ClienteBean.cliente.senha}"/>
				
				<p:commandButton id = "Salvar" value = "Salvar" action="#{ClienteBean.salvar}"/>
				<p:commandButton id = "Imprimir" value = "Imprimir" action="#{ClienteBean.imprimir}"/>
			</h:panelGrid>
		</h:form>
	</p:fieldset>
</h:body>
</html>